public class Main {
    public static void main(String[] args) {

        HungrySingLeton.getInstance().setName("饿汉式");
        LazySingLeton.getInstance().setName("懒汉式");
        System.out.println(HungrySingLeton.getInstance().ShowName());
        System.out.println(LazySingLeton.getInstance().ShowName());
    }
}